﻿<%@ Page Language="C#" Inherits="ipi.MCC.Pages.MCCAdministrationPage, MCC, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c1bcda0f03a0d11e" MasterPageFile="/_layouts/application.master" %> 
<%@ Assembly Name="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%> <%@ Import Namespace="Microsoft.SharePoint.WebControls" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
	Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Tagprefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="LinksTable" src="/_controltemplates/LinksTable.ascx" %> 
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="/_controltemplates/InputFormSection.ascx" %> 
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="/_controltemplates/InputFormControl.ascx" %> 
<%@ Register TagPrefix="wssuc" TagName="LinkSection" src="/_controltemplates/LinkSection.ascx" %> 
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="/_controltemplates/ButtonSection.ascx" %> 
<%@ Register TagPrefix="wssuc" TagName="ActionBar" src="/_controltemplates/ActionBar.ascx" %> 
<%@ Register TagPrefix="wssuc" TagName="ToolBar" src="/_controltemplates/ToolBar.ascx" %> 
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="/_controltemplates/ToolBarButton.ascx" %> 
<%@ Register TagPrefix="wssuc" TagName="Welcome" src="/_controltemplates/Welcome.ascx" %>
<%@ Register Src="/_controltemplates/MCC/MCCTreeAdminControl.ascx" TagName="MCCTreeAdminControl" TagPrefix="ipi" %>
<%@ Register Src="/_controltemplates/MCC/MCCTreeEditControl.ascx" TagName="MCCTreeEditControl" TagPrefix="ipi" %>
<%@ Register Src="/_controltemplates/MCC/MCCTreeSitesControl.ascx" TagName="MCCTreeSitesControl" TagPrefix="ipi" %>

<asp:Content ID="Content1" contentplaceholderid="PlaceHolderPageTitle" runat="server">
	<SharePoint:EncodedLiteral ID="elPageTitle" runat="server" Text="will be set by code" EncodeMethod='HtmlEncode' />
</asp:Content>
<asp:Content ID="Content2" contentplaceholderid="PlaceHolderPageTitleInTitleArea" runat="server">
	<table cellpadding="0" cellspacing="0" width="100%">
	<tr>
	<td style="background-color:#9d9d9d; height:61px; background-image:url('../../_layouts/images/MCC/MCCLogo.gif'); background-repeat:no-repeat; background-position:6px center; padding-left:10px"></td>
	</tr>
	</table>
</asp:Content>
<asp:Content ID="Content3" contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">

<style type="text/css">

.TreeView
{
	font-family: Tahoma;
	font-size: 12px;
	color:Black;
	font-weight:bold;
}

.TreeView a
{
	font-family: Tahoma;
	font-size: 12px;
	color: #51514f;
	}

.ms-areaseparator{
background-color:#9d9d9d;
background-image:none;
background-repeat:repeat-x;
border-right:none;
border-left:none;
padding-left:5px;
height:61px;
}
td.ms-areaseparatorleft{
background:#ffffff;
background-repeat:repeat-x;
border-right:1px solid #6f9dd9;
height:100%;
}
div.ms-areaseparatorleft{
background:#ffffff;
background-repeat:no-repeat;
background-position:-143px 0px;
border-right:1px solid #6f9dd9;
height:100%;
}
div.ms-areaseparatorright{
background:#ffffff;
background-repeat:repeat-x;
border-left:1px solid #6f9dd9;
padding-right:2px;
height:100%;
}
.ms-titlearearight .ms-areaseparatorright{
background:#ffffff;
background-repeat:repeat-x;
border-left:1px solid #6f9dd9;
padding-right:2px;
height:100%;
}


</style>

	<SharePoint:ScriptLink ID="ScriptLink1" language="javascript" name="commonvalidation.js" runat="server" />
	<SharePoint:ScriptLink ID="ScriptLink2" language="javascript" name="AssetPickers.js" runat="server" />
	<SharePoint:ScriptLink ID="ScriptLink3" language="javascript" name="SelectorControls.js" runat="server" />
<script type="text/javascript" Language="javascript">
function    Visascii(ch)
{
	return (!(ch.charCodeAt(0) & 0x80));
}
function Visspace(ch)
{
	return (ch.charCodeAt(0) == 32) || ((9 <= ch.charCodeAt(0)) && (ch.charCodeAt(0) <= 13));
}
function stripWS(str)
{
	var b = 0;
	var e = str.length;
	while (str.charAt(b) && (Visascii(str.charAt(b)) && Visspace(str.charAt(b))))
		b++;
	while ((b < e) && (Visascii(str.charAt(e-1)) && Visspace(str.charAt(e-1))))
		e--;
	return ((b>=e)?"":str.substring(b, e ));
}
var L_NoFieldEmpty_TEXT = "<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,common_nofieldempty_TEXT%>' EncodeMethod='EcmaScriptStringLiteralEncode'/>";
function CheckForEmptyField(text_orig,field_name)
{
	var text = stripWS(text_orig);
	if (text.length == 0)
	{
		alert(StBuildParam(L_NoFieldEmpty_TEXT, field_name));
		return false;
	}
	return (true);
}
function CheckForEmptyFieldNoAlert(text_orig)
{
	var text = stripWS(text_orig);
	if (text.length == 0)
	{
		return false;
	}
	return (true);
}
var L_WrongEmailName_TEXT = "<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,common_wrongemailname_TEXT%>' EncodeMethod='EcmaScriptStringLiteralEncode'/>";
function CheckForAtSighInEmailName(text_orig,field_name)
{
	var text = stripWS(text_orig);
	if (!CheckForEmptyField(text_orig,field_name)) return false;
	var indexAt = 0;
	var countAt = 0;
	var countSpace = 0;
	var len = text.length;
	while(len--)
	{
		if (text.charAt(len) == '@')
		{
			indexAt = len;
			countAt++;
		}
		if (text.charAt(len) == ' ')
			countSpace ++;
	}
	if ((countAt == 0) ||
		(indexAt == 0) ||
		(indexAt == (text.length-1))
		)
	{
		alert(StBuildParam(L_WrongEmailName_TEXT, field_name));
		return false;
	}
	if (countSpace !=0 )
	{
		alert(L_TextWithoutSpaces1_TEXT + field_name);
		return false;
	}
	return (true);
}
	function _spFormOnSubmit()
	{
		return true;
	}
</script>

</asp:Content>
<asp:Content ID="Content4" contentplaceholderid="PlaceHolderPageDescription" runat="server">
	<SharePoint:EncodedLiteral ID="EncodedLiteral3" runat="server" text="" EncodeMethod='HtmlEncode'/>
</asp:Content>
<asp:Content ID="Content5" contentplaceholderid="PlaceHolderMain" runat="server">
    <asp:ScriptManager id="ScriptManager1" runat="server"></asp:ScriptManager>

	<table style="border:solid 1px #51514f" width="100%" cellspacing="0" cellpadding="0" id="diidProjectPageOverview">
	    <tr>
	        <td rowspan="4" style="padding:10px; border-right:solid 1px #9d9d9d; background-color: #f0f0f0">
	        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
	            <ContentTemplate>
	        <asp:Panel ID="pnlTree" runat="server">
	        <ipi:MCCTreeEditControl id="dtNavigate" runat="server"></ipi:MCCTreeEditControl>
	        </asp:Panel>
	        		                            </ContentTemplate>
                </asp:UpdatePanel>
	        </td>
	        
	        <td style="padding-left:10px; padding-top:10px">
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
	            <ContentTemplate>
                <asp:CustomValidator ID="validGlobal" runat="server"></asp:CustomValidator>
                <asp:Panel ID="pnlMasterWeb" runat="server">
                    <asp:Label ID="lblMasterWeb" runat="server" CssClass="ms-descriptiontext" ></asp:Label><br />
                    <asp:TextBox ID="txtMasterWeb"  CssClass="ms-input" Width="400" runat="server"></asp:TextBox><br />
                    <asp:Button ID="btnMasterWeb" runat="server" style="background-image:url('../../_layouts/images/MCC/Masterweb.gif'); background-color:#51514f; border-style:none; background-repeat:no-repeat; padding-left:18px; color:White; font-family:Tahoma; font-size:12px; width:160px; height:18px"/><br />
                    <asp:CustomValidator ID="validMasterWeb" runat="server"></asp:CustomValidator>
                </asp:Panel>
                		                            </ContentTemplate>
                </asp:UpdatePanel>
            </td>
	    
	    </tr>
	
        <tr>
           
            <td>
            <asp:UpdatePanel ID="UpdatePanel3" runat="server">
	            <ContentTemplate>
            <asp:Panel ID="pnlTreeNav" runat="server">
            <ipi:MCCTreeAdminControl id="nhTreeNav" runat="server"></ipi:MCCTreeAdminControl>
            </asp:Panel>
            		                            </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
           
            <td style="background-color: #f0f0f0; border-top: solid 1px #9d9d9d; border-bottom: solid 1px #9d9d9d; padding:10px">
            <asp:UpdatePanel ID="UpdatePanel4" runat="server">
	            <ContentTemplate>
            <asp:Panel ID="pnlSitesTree" runat="server">
                <ipi:MCCTreeSitesControl id="sscCurrentWeb" runat="server"></ipi:MCCTreeSitesControl>
            </asp:Panel>
            		                            </ContentTemplate>
                </asp:UpdatePanel>

            </td>
        </tr>
        <tr>
            
            <td style="padding:10px">
            
			<asp:Button id="btnClearCache" runat="server" style="background-image:url('../../_layouts/images/MCC/ClearCache.gif'); background-color:#51514f; border-style:none; background-repeat:no-repeat; padding-left:18px; color:White; font-family:Tahoma; font-size:12px; width:160px; height:18px" />
			<asp:Button UseSubmitBehavior="false" runat="server" style="background-image:url('../../_layouts/images/MCC/OK.gif'); background-color:#51514f; border-style:none; background-repeat:no-repeat; padding-left:18px; color:White; font-family:Tahoma; font-size:12px; width:160px; height:18px" OnClick="BtnSubmit_Click" Text="<%$Resources:wss,multipages_okbutton_text%>" id="BtnSubmit" accesskey="<%$Resources:wss,okbutton_accesskey%>"/>
			<asp:Button UseSubmitBehavior="false" runat="server" style="background-image:url('../../_layouts/images/MCC/Abort.gif'); background-color:#51514f; border-style:none; background-repeat:no-repeat; padding-left:18px; color:White; font-family:Tahoma; font-size:12px; width:160px; height:18px" OnClick="BtnCancel_Click" Text="<%$Resources:wss,multipages_cancelbutton_text%>" id="btnCancel" accesskey="<%$Resources:wss,cancelbutton_accesskey%>"/>
		
            </td>
        </tr>
	</table>  
		
</asp:Content>

